<?php

class Product_Form_Upload extends Zend_Form
{

    public function init()
    {
        $this->setAttrib('id', 'uploadForm');
	$this->setAttrib('enctype', 'multipart/form-data');
		
	$file = new Zend_Form_Element_File('file');
	$file->setLabel('file');
	
	$submit_upload = new Zend_Form_Element_Button('submit_upload');
	$submit_upload->setLabel('upload');
	$submit_upload->setAttrib('onclick', 'ajaxUpload()');
	
	$this->addElements(array(
	    $file,
	    $submit_upload
	));
    }

}

